package simple.engine.objects;

public class Vector2f {

	private float mX, mY;
	
	// Getters and setters
	
	public void setX(float value)
	{
		this.mX = value;
	}
	
	public void setY(float value)
	{
		this.mY = value;
	}
	
	public float getX()
	{
		return mX;
	}
	
	public float getY()
	{
		return mY;
	}
	
	// Constructors
	public Vector2f()
	{
		this.mX = this.mY = 0.0f;
	}
	
	public Vector2f(float x, float y)
	{
		this.mX = x;
		this.mY = y;
	}
	
	// Methods
	
	public void setValue(float x, float y)
	{
		this.mX = x;
		this.mY = y;
	}
	
	public void addVector(Vector2f vector2f)
	{
		this.mX += vector2f.mX;
		this.mY += vector2f.mY;
	}
	
	// Overrides
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}
	
	
}
